package com.japstudy.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.japstudy.dao.IWordSexDao;
import com.japstudy.entity.WordSex;
import com.japstudy.service.IWordSexService;

@Service
public class WordSexServiceImpl implements IWordSexService{
	
	@Autowired
	private IWordSexDao iWordSexDao;

	@Override
	public int add(WordSex wordSex) {
		return iWordSexDao.add(wordSex);
	}

	@Override
	public int delete(WordSex wordSex) {
		return iWordSexDao.delete(wordSex);
	}

	@Override
	public int update(WordSex wordSex) {
		return iWordSexDao.update(wordSex);
	}

	@Override
	public WordSex selectById(String wordSexId) {
		return iWordSexDao.selectById(wordSexId);
	}

	@Override
	public List<WordSex> selectAll() {
		return iWordSexDao.selectAll();
	}

	@Override
	public WordSex selectByWordSexName(WordSex wordSex) {
		return iWordSexDao.selectByWordSexName(wordSex);
	}

	@Override
	public List<WordSex> selectByNameLike(String wordSexName) {
		return iWordSexDao.selectByNameLike(wordSexName);
	}
}
